]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quick-toggle: Make the subtitle the a11y description of the toggle
authorLukáš Tyrychtr <ltyrycht@redhat.com>
Tue, 24 Sep 2024 10:08:47 +0000 (12:08 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 17 Oct 2024 16:49:08 +0000 (18:49 +0200)
By doing that, more info is read by default, like the
connected bluetooth device and likely more.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3484>
(cherry picked from commit 9fc53967428f39758b59740ae4aa558e11234f35)

js/ui/quickSettings.js

index 344732e3fc9eaf89fa598ca57059b5dcf304c123..ab282910e9e1e5eb36f155d9f6e5cb9bfa628824 100644 (file)
@@ -104,6 +104,7 @@ export const QuickToggle = GObject.registerClass({
             x_align: Clutter.ActorAlign.START,
             x_expand: true,
         });
+        this.get_accessible().add_relationship(Atk.RelationType.DESCRIBED_BY, this._subtitle.get_accessible());
 
         const titleBox = new St.BoxLayout({
             y_align: Clutter.ActorAlign.CENTER,